<?php

namespace App\Library\Requests\Im;

use App\Library\Requests\Base\BaseDTORequest;
use App\Library\Rules\MediaImgRule;

class ImAddRequest extends BaseDTORequest
{
    public function rules(): array
    {
        return [
            'acceptId' => 'required|integer|min:1',
            'text' => 'nullable|string|max:500',
            'fileId' => ['nullable', new MediaImgRule],
        ];
    }
}
